home *** CD-ROM | disk | FTP | other *** search
/ Champak 141 / (Vol 141) Oct 17 2011.iso / Games / despereaux-swings.swf / scripts / Box2D / Collision / b2ContactID.as < prev    next >
Encoding:
Text File  |  2011-10-17  |  1.0 KB  |  46 lines

  1. package Box2D.Collision
  2. {
  3.    public class b2ContactID
  4.    {
  5.        
  6.       
  7.       public var _key:uint;
  8.       
  9.       public var features:Features;
  10.       
  11.       public function b2ContactID()
  12.       {
  13.          features = new Features();
  14.          super();
  15.          features._m_id = this;
  16.       }
  17.       
  18.       public function Set(param1:b2ContactID) : void
  19.       {
  20.          key = param1._key;
  21.       }
  22.       
  23.       public function Copy() : b2ContactID
  24.       {
  25.          var _loc1_:b2ContactID = null;
  26.          _loc1_ = new b2ContactID();
  27.          _loc1_.key = key;
  28.          return _loc1_;
  29.       }
  30.       
  31.       public function get key() : uint
  32.       {
  33.          return _key;
  34.       }
  35.       
  36.       public function set key(param1:uint) : void
  37.       {
  38.          _key = param1;
  39.          features._referenceEdge = _key & 255;
  40.          features._incidentEdge = (_key & 65280) >> 8 & 255;
  41.          features._incidentVertex = (_key & 16711680) >> 16 & 255;
  42.          features._flip = (_key & 4278190080) >> 24 & 255;
  43.       }
  44.    }
  45. }
  46.